package com.ecloud.service.security.service.iface;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ecloud.common.base.result.Result;
import com.ecloud.openapi.security.dto.BaseMenuDto;
import com.ecloud.openapi.security.po.BaseMenuPo;

/**
 * 机构菜单表 服务接口
 *
 * @author LiuGangQiang Create in 2021/07/04
 */
public interface IBaseMenuService extends IService<BaseMenuPo> {

    /**
     * 新增菜单
     *
     * @author LiuGangQiang Create in 2021/07/09
     * @param dto 入参
     * @return {@link Result}
     */
    Result<?> insert(BaseMenuDto dto);

    /**
     * 删除菜单
     *
     * @author LiuGangQiang Create in 2021/07/09
     * @param dto 入参
     * @return {@link Result}
     */
    Result<?> delete(BaseMenuDto dto);

    /**
     * 修改菜单
     *
     * @author LiuGangQiang Create in 2021/07/09
     * @param dto 入参
     * @return {@link Result}
     */
    Result<?> update(BaseMenuDto dto);

    /**
     * 查询列表
     *
     * @author LiuGangQiang Create in 2021/07/09
     * @param dto 入参
     * @return {@link Result}
     */
    Result<?> queryList(BaseMenuDto dto);

    /**
     * 查询详情
     *
     * @author LiuGangQiang Create in 2021/07/09
     * @param id 主键
     * @return {@link Result}
     */
    Result<?> queryDetail(String id);

}
